package tcpsvr

import (
	"fmt"
	"net"
	"time"
)


type Listener struct{
	fd int
	tcp *net.TCPListener
}

var listener Listener

func Listen(){
	var err error
	ip := net.IPv4(127,0,0,1)
	addr := net.TCPAddr{ip,8008,""}
	listener.tcp ,err =  net.ListenTCP("tcp",&addr)
	if err != nil {
		panic(err)
	}
	for {
		time.Sleep(time.Second *1)
		fmt.Println("tick once")
	}
	fmt.Println("Start Listen")
}



















